<template>
	<view class="main">
		<u-navbar
		title="切换身份"
		title-size="34"
		back-icon-color="#ffffff"
		title-color="#ffffff"
		:border-bottom="false"
		:background="background">
		</u-navbar>
		<view class="content">
			<view class="item">
				<image src="../../static/image/identity.png" mode=""></image>
				<view class="title">我是开发者</view>
			</view>
			<view class="item active">
				<image src="../../static/image/identity1.png" mode=""></image>
				<view class="title">我是企业主</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				background: {
					backgroundColor:"#4A90E2"
				},
			}
		},
		onLoad() {
			
		},
		onShow() {
			
		},
		onPullDownRefresh() {
		    console.log('refresh');
		    setTimeout(function () {
		        uni.stopPullDownRefresh();
		    }, 1000);
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.main{
		min-height: 100vh;
		background-color: #f9f9f9;
		padding: 0 30rpx;
		.content{
			.item{
				padding: 32rpx 0;
				background: #FFFFFF;
				border-radius: 8rpx;
				text-align: center;
				margin-top: 30rpx;
				border: 6rpx solid #FFFFFF;
				&:nth-child(1){
					image{
						width: 382rpx;
						height: 272rpx;
					}
				}
				&:nth-child(2){
					image{
						width: 260rpx;
						height: 273rpx;
					}
				}
				.title{
					font-size: 28rpx;
					font-weight: 500;
					color: #333333;
					line-height: 40rpx;
					margin-top: 28rpx;
				}
				&.active{
					border:6rpx solid #4A90E2;
				}
			}
		}

	}
</style>
